package demo.database.mysql.demo.utils;

import java.sql.Connection;
import java.sql.SQLException;

import com.titan.core.utils.dbinfo.dialect.DBDialect;
import com.titan.core.utils.dbinfo.dialect.IDBDialect;

public class MySqlUtils {
    public static Connection getConnection(String url, String userid, String password) throws SQLException {
        IDBDialect dialect = DBDialect.MYSQL.get();
        return dialect.getConnection(url, userid, password);
    }
}
